package query

import (
	"ssdevice/common/dto"
)

type DevDataQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo   `search:"-"`
	IdSn           string `form:"idSn"`
	ProductModel   string `form:"productModel"`
	Key            string `form:"key" vd:"len($)>0"`
	Value          string `form:"value" `
	KeyType        string `form:"keyType"`
	StartTime      string `form:"startTime"`
	EndTime        string `form:"endTime"`
	TimeOrder      string `form:"timeOrder"`
	HasValue       bool   `form:"hasValue"`
}

type DevHistStatQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo   `search:"-"`
	StartTime      string        `json:"startTime"`
	EndTime        string        `json:"endTime"`
	SnKeys         []DevDataItem `json:"snKeys"`
	TimeOrder      string        `form:"timeOrder"`
}

type DevDataItem struct {
	Sn      string `json:"sn"`
	Key     string `json:"key"`
	KeyType string `json:"keyType"`
}
